<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        a {
            text-decoration:none;
        }
        li {
             list-style: none;
        }
    </style>
</head>
<body>
<ul>
{{--  好了完成了 我的天  --}}
 @foreach($leave as $val)
    <li>
        <a href="" >
        @if($val->level == '0')
            {{$val->comment}}
        @elseif($val->level == '1' )
            --
            {{$val->comment}}
        @elseif($val ->level > '1')
            ----
            {{$val->comment}}
        @endif
        </a>
    </li>
    @endforeach
</ul>
   
</body>
</html>
  
